<?php
declare(strict_types=1);

use think\facade\Route;
use SixShop\Lakala\Controller\Api\{
    IndexController,
    ProfitShareOrderController,
    ProfitShareReceiverController
};
use SixShop\System\Middleware\MacroPageMiddleware;
// API路由
// 路由前缀: /api/lakala
//
// 如果需要登录请添加认证中间件auth
// ->middleware(['auth'])
Route::resource('profit_share_order', ProfitShareOrderController::class)
    ->middleware(['auth', MacroPageMiddleware::class]);
Route::resource('profit_share_receiver', ProfitShareReceiverController::class)
    ->middleware(['auth', MacroPageMiddleware::class]);

Route::post('notify', [IndexController::class, 'notify']);